package com.zl.learning.jna;

import com.sun.jna.Library;
import com.sun.jna.Native;

public class DLLTestApi {
    public interface CLibrary extends Library {
//        DLLTestApi.CLibrary INSTANCE = Native.loadLibrary(("D:\\workspace\\JavaNotes\\jna\\lib\\DLLTest3.dll"), DLLTestApi.CLibrary.class);
        DLLTestApi.CLibrary INSTANCE = Native.loadLibrary(("D:\\workspace\\JavaNotes\\jna\\lib\\DDLTest3.dll"), DLLTestApi.CLibrary.class);
        String ListHW();
        int Test1();

        int Test2(int a, int b);
    }

    public static void main(String[] args) {
//        int success = DLLTestApi.CLibrary.INSTANCE.Test1();
        int success = DLLTestApi.CLibrary.INSTANCE.Test2(33,2);
//        String  success = DLLTestApi.CLibrary.INSTANCE.ListHW();
        System.out.println(success);
    }
}
